#include<iostream>
using namespace std;
int main()
{
	int n,num;
	int even=0;
	while(cin>>n)
	{
		even=0;
		for(int i=0;i<n;i++)
		{
			cin>>num;
			if(num%2==0)even++;
		}
		if(even*2>n)cout<<"NO"<<endl;
		else cout<<"YES"<<endl;
	}
	return 0;
}
